﻿﻿using System;
using System.Globalization;
using System.Text.RegularExpressions;

class Program
{
    static void Main()
    {
        DateTime firstDate = DateTime.ParseExact(Console.ReadLine(), "d.MM.yyyy", null);
        DateTime secondDate = DateTime.ParseExact(Console.ReadLine(), "d.MM.yyyy", null);
        int a = (int)((secondDate - firstDate).TotalDays - (secondDate.Year - firstDate.Year) * 365);
        if (a<0)
        {
            a *= -1;
        }
        Console.WriteLine("Days: {0}",a);
    }
}